package com.zhou.jiancai.fragment.tablayoutFragment;

import android.os.Bundle;

import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.zhou.jiancai.R;

/**
 * Created by Administrator on 2017/8/15.
 */

public class HandTravelFragment extends Fragment {


    /*    private static class LazyHolder {
            private static final HandTravelFragment INSTANCE = new HandTravelFragment();
        }
        private HandTravelFragment (){}
        public static final HandTravelFragment getInstance() {
            return LazyHolder.INSTANCE;
        }*/




    /*单利的fragment*/
    public static HandTravelFragment instance;
    public  static HandTravelFragment getInstance(){
        if (instance !=null) {
            return instance;

        }else {
            HandTravelFragment instance1=new HandTravelFragment();
            return instance1;
        }
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        View view=inflater.inflate(R.layout.layout2, container, false);
        return view;
    }

}